package com.wy.ssm01.mapper;


import com.wy.ssm01.entity.MyTestEntity;

import java.math.BigDecimal;
import java.util.List;

public interface TestMapper {

    int insert(MyTestEntity testEntity);

    int delete(Integer testId);

    int update(MyTestEntity testEntity);

    MyTestEntity queryById(Integer testId);

    List<MyTestEntity> queryAll();
    
    boolean sendMoney(BigDecimal quantity, Integer toId);

    boolean receiveMoney(BigDecimal quantity,Integer fromId);

    /*
        MyTestEntity queryByName(String username);
        MyTestEntity queryByNameAndPassword(String name,String password);
    */
}
